﻿<local:BaseDataBaseWizardWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Sinacor.Deployment.Setup.UI"
	x:Class="Sinacor.Deployment.Setup.UI.DataBaseConnection"
	Title="Setup">
    <Grid>
        <Button HorizontalAlignment="Right" Style="{DynamicResource BotaoFechar}" VerticalAlignment="Top" Width="15" Height="15" Content="" Margin="0,15,15,0" x:Name="BtnClose"/>
        <TextBlock Margin="50,125,0,0" VerticalAlignment="Top" FontSize="12" TextWrapping="Wrap" HorizontalAlignment="Left" Width="860" Foreground="#FF333333"><Run FontSize="24" FontWeight="Bold" Foreground="#FF336699" Text="Informações de Banco de Dados - Dados Complementares" Language="pt-br"/><LineBreak/><LineBreak/><Run Text="Para instalar o Banco de Dados e Serviços SINACOR, é necessário informar os dados abaixo." Language="pt-br"/><LineBreak/><Run Text="Em caso de dúvidas, favor contatar o Administrador de Banco de Dados de sua empresa antes de prosseguir." Language="pt-br"/></TextBlock>
        <Button Margin="0,0,140,50" Style="{DynamicResource setupBt}" x:Name="BtnPrevious" Content="Retornar" Background="{DynamicResource BtBackColor}" VerticalAlignment="Bottom" Height="21" Foreground="#FFFFFFFF" HorizontalAlignment="Right" Width="80"/>
        <Button Margin="0,0,50,50" Style="{DynamicResource setupBt}" x:Name="BtnNext" Content="Avançar" Background="{DynamicResource BtBackColor}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="80" Height="21" Foreground="#FFFFFFFF"/>
        <Label HorizontalAlignment="Left" Margin="50,225,0,0" VerticalAlignment="Top" Content="TNS Oracle" HorizontalContentAlignment="Right" Width="100" FontSize="12"/>
        <ComboBox VerticalAlignment="Top" IsEditable="True" IsSynchronizedWithCurrentItem="True" Margin="155,225,0,0" Style="{DynamicResource ComboBoxPSE}"  HorizontalAlignment="Left" Width="500" FontSize="12" x:Name="CboTNS"/>
        <TextBox TextChanged="TxtUser_TextChanged" Margin="155,250,0,0" Style="{DynamicResource TextBoxPSE}" VerticalAlignment="Top" BorderBrush="{x:Null}" TextWrapping="Wrap" Width="250" HorizontalAlignment="Left" CharacterCasing="Upper" Height="21" FontSize="12" x:Name="TxtUser"/>
        <PasswordBox PasswordChanged="TxtPassword_PasswordChanged" Margin="155,275,0,0" Style="{DynamicResource PasswordPSE}" VerticalAlignment="Top" BorderBrush="{x:Null}" HorizontalAlignment="Left" Width="250" Height="21" FontSize="12" x:Name="TxtPassword"/>
        <Label HorizontalAlignment="Left" Margin="50,250,0,0" VerticalAlignment="Top" Width="100" Content="Usuário" HorizontalContentAlignment="Right" FontSize="12"/>
        <Label HorizontalAlignment="Left" Margin="50,275,0,0" VerticalAlignment="Top" Width="100" Content="Senha" HorizontalContentAlignment="Right" FontSize="12"/>
        <CheckBox VerticalAlignment="Top" IsChecked="{Binding IsEncrypted}" Content="Utilizar Senha Criptografada" Margin="425,280,0,0" HorizontalAlignment="Left" FontSize="12" x:Name="ChkEncryptedPassword"/>
        <Button  Background="{DynamicResource BtBackColor}" Click="Button_Click" Foreground="White" Height="21" Margin="155,308,0,0" Style="{DynamicResource setupBt}" VerticalAlignment="Top" HorizontalAlignment="Left" Width="113">Testar Conexão</Button>
        <TextBox Height="0" Width="0" TextChanged="TextBox_TextChanged"  Text="{Binding ElementName=CboTNS, Path=Text}" Visibility="Collapsed" />
    </Grid>

</local:BaseDataBaseWizardWindow>